package saeildamil.ch18.sync;

public class MultiThreadEx03 {
	public static void main(String[] args) {
		SharedArea sharedArea = new SharedArea();
		
		CalcThread th = new CalcThread();
		th.sharedArea = sharedArea;
		
		th.start();
		
		try {
			Thread.sleep(7000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(sharedArea.result);
		
	}

}
